{% extends "admin/__base.html" %}
{% block title %}后台管理-添加日志{% endblock %}
{% block head%}<script type="text/javascript" src="{{url_for('static',filename='js/tinymce/jscripts/tiny_mce/jquery.tinymce.js')}}"></script>
<script type="text/javascript">
	$().ready(function() {
		$('#content').tinymce({
			// Location of TinyMCE script
			script_url : '{{url_for('static',filename='js/tinymce/jscripts/tiny_mce/tiny_mce.js')}}',

			// General options
			language:"zh-cn",
			theme : "advanced",
			skin : "o2k7",
			width : "650px",
			height : "450px",
			plugins : "syntaxhl,emotions,preview,media,searchreplace,print,contextmenu,paste,fullscreen,advlist",

			// Theme options
			theme_advanced_buttons1 : "code,preview,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,formatselect,fontselect,fontsizeselect",
			theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,|,undo,redo,|,link,unlink,anchor,image,cleanup,|,forecolor,backcolor",
			theme_advanced_buttons3 : "hr,removeformat,|,sub,sup,|,charmap,emotions,media,|,print,syntaxhl,|,fullscreen,help",
			theme_advanced_toolbar_location : "top",
			theme_advanced_toolbar_align : "left",
			theme_advanced_statusbar_location : "bottom",
			theme_advanced_resizing : false,
			remove_linebreaks : false,
			extended_valid_elements : "textarea[cols|rows|disabled|name|readonly|class]"
		});
	});
</script>
{%endblock%}
{% block right%}
<form method='post'>日志内容：
<textarea id="content" name="content"></textarea>
</form>
{% endblock%}